package baseClass;

import android.content.Context;
import android.graphics.Typeface;
import android.util.Log;
import android.view.Display;
import android.view.WindowManager;
import com.nPones.MainActivity;
import java.util.Random;

public class Global
{
  public static Global instance = null;
  public float dnst_h;
  public float dnst_w;
  public Typeface font = Typeface.MONOSPACE;
  public MainActivity m_activity;
  public Context m_context;
  private int screen_height = 720;
  private int screen_width = 1280;
  
  public static Global GetInstance()
  {
    if (instance == null)
    {
      Log.v("test", "Call GetInstance And It is null");
      instance = new Global();
    }
    return instance;
  }
  
  public void ObjectInit(Context paramContext, MainActivity paramMainActivity)
  {
    this.m_activity = paramMainActivity;
    this.m_context = paramContext;
    paramContext = ((WindowManager)this.m_context.getSystemService("window")).getDefaultDisplay();
    this.dnst_w = (paramContext.getWidth() / this.screen_width);
    this.dnst_h = (paramContext.getHeight() / this.screen_height);
  }
  
  public int RandomNum(int paramInt)
  {
    return new Random().nextInt(paramInt);
  }
  
  public int getScreenHeight()
  {
    return instance.screen_height;
  }
  
  public int getScreenWidth()
  {
    return instance.screen_width;
  }
}


/* Location:           D:\Tool\AndroidKiller_v1.3.1\projects\petdesigner\ProjectSrc\classes-dex2jar.jar
 * Qualified Name:     baseClass.Global
 * JD-Core Version:    0.7.0.1
 */